package com.shop.mapper;

import com.shop.entity.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BrandMapper {
    List<Brand> listBrand(@Param("pageNum")int pageNum, @Param("pageSize") int pageSize);
    Brand getBrand(@Param("name") String name);
    Brand getBrandById(@Param("id") Integer id);
    void addBrand(Brand brand);
    void deleteBrand(@Param("id") Integer id);
    void updateBrand(Brand brand);
    int getTotal();
}
